Optimal. Leaf size=47 \[ \frac{1}{2} x^2 \sqrt{a+\frac{b}{x^2}}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{a+\frac{b}{x^2}}}{\sqrt{a}}\right )}{2 \sqrt{a}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0746072, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.308 \[ \frac{1}{2} x^2 \sqrt{a+\frac{b}{x^2}}+\frac{b \tanh ^{-1}\left (\frac{\sqrt{a+\frac{b}{x^2}}}{\sqrt{a}}\right )}{2 \sqrt{a}} \]
Antiderivative was successfully verified.
[In] Int[Sqrt[a + b/x^2]*x,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 6.80272, size = 39, normalized size = 0.83 \[ \frac{x^{2} \sqrt{a + \frac{b}{x^{2}}}}{2} + \frac{b \operatorname{atanh}{\left (\frac{\sqrt{a + \frac{b}{x^{2}}}}{\sqrt{a}} \right )}}{2 \sqrt{a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((a+b/x**2)**(1/2)*x,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0508789, size = 58, normalized size = 1.23 \[ \frac{1}{2} x \sqrt{a+\frac{b}{x^2}} \left (\frac{b \log \left (\sqrt{a} \sqrt{a x^2+b}+a x\right )}{\sqrt{a} \sqrt{a x^2+b}}+x\right ) \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[a + b/x^2]*x,x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.007, size = 62, normalized size = 1.3 \[{\frac{x}{2}\sqrt{{\frac{a{x}^{2}+b}{{x}^{2}}}} \left ( x\sqrt{a{x}^{2}+b}\sqrt{a}+b\ln \left ( \sqrt{a}x+\sqrt{a{x}^{2}+b} \right ) \right ){\frac{1}{\sqrt{a{x}^{2}+b}}}{\frac{1}{\sqrt{a}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((a+b/x^2)^(1/2)*x,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(a + b/x^2)*x,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.253134, size = 1, normalized size = 0.02 \[ \left [\frac{2 \, a x^{2} \sqrt{\frac{a x^{2} + b}{x^{2}}} + \sqrt{a} b \log \left (-2 \, a x^{2} \sqrt{\frac{a x^{2} + b}{x^{2}}} -{\left (2 \, a x^{2} + b\right )} \sqrt{a}\right )}{4 \, a}, \frac{a x^{2} \sqrt{\frac{a x^{2} + b}{x^{2}}} - \sqrt{-a} b \arctan \left (\frac{\sqrt{-a}}{\sqrt{\frac{a x^{2} + b}{x^{2}}}}\right )}{2 \, a}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(a + b/x^2)*x,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 6.99278, size = 41, normalized size = 0.87 \[ \frac{\sqrt{b} x \sqrt{\frac{a x^{2}}{b} + 1}}{2} + \frac{b \operatorname{asinh}{\left (\frac{\sqrt{a} x}{\sqrt{b}} \right )}}{2 \sqrt{a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((a+b/x**2)**(1/2)*x,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.23426, size = 72, normalized size = 1.53 \[ \frac{b{\rm ln}\left (\sqrt{b}\right ){\rm sign}\left (x\right )}{2 \, \sqrt{a}} + \frac{1}{2} \,{\left (\sqrt{a x^{2} + b} x - \frac{b{\rm ln}\left ({\left | -\sqrt{a} x + \sqrt{a x^{2} + b} \right |}\right )}{\sqrt{a}}\right )}{\rm sign}\left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(a + b/x^2)*x,x, algorithm="giac")
[Out]